<?php

use Illuminate\Database\Seeder;
use SmallRuralDog\Admin\Auth\Database\Administrator;

class DatabaseSeeder extends Seeder
{
    /**
     * Seed the application's database.
     *
     * @return void
     */
    public function run()
    {
        $faker = \Faker\Factory::create();

        $data= [];
        foreach (range(0, 550) as $v) {
            $data[] = [
                'title'   => $faker->name,
                'parent_id'   => rand(51,202),
                'order'   => 0,
            ];
        }

        \App\Models\Tree::insert($data);
    }
}
